package com.ez.supervise.service;

import java.util.List;

import com.ez.supervise.core.Page;
import com.ez.supervise.model.sys.User;
import com.ez.supervise.service.base.BaseService;

/**
 * @author searph.wang
 * @email searph.wang@gmail.com
 * @Created at 2009-7-22
 * 
 */
public interface UserService extends BaseService {

    /**
     * @param page
     * @return
     */
    Page findByPage(Page page);

    /**
     * @return
     */
    List findAllUser();

    /**
     * @param userName
     * @param password
     * @return
     */
    User login(String userName, String password);

    List findByOrg(Long orgId);

    void editPassword(User user);
}
